xen: allow for explicitly specifying node-affinity
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 17 Apr 2013 10:57:32 +0000 (10:57 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 17 Apr 2013 11:11:14 +0000 (12:11 +0100)
commitb5b79a12c41b5e76af9d47551027b56f210d9029
tree05125acfb1348b09f63830577687a55f73d0b324
parentcfcc144ff1ce59a9f93a44bbc89d1e20f5011c3d
xen: allow for explicitly specifying node-affinity

Make it possible to pass the node-affinity of a domain to the hypervisor
from the upper layers, instead of always being computed automatically.

Note that this also required generalizing the Flask hooks for setting
and getting the affinity, so that they now deal with both vcpu and
node affinity.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Acked-by: Keir Fraser <keir@xen.org>
14 files changed:
tools/flask/policy/policy/mls
tools/flask/policy/policy/modules/xen/xen.if
tools/flask/policy/policy/modules/xen/xen.te
xen/common/domain.c
xen/common/domctl.c
xen/common/keyhandler.c
xen/common/sched_credit.c
xen/common/schedule.c
xen/include/public/domctl.h
xen/include/xen/nodemask.h
xen/include/xen/sched-if.h
xen/include/xen/sched.h
xen/xsm/flask/hooks.c
xen/xsm/flask/policy/access_vectors